package com.chazz.entity;

import com.chazz.annotation.Id;

import java.io.Serializable;

/**
 * (Cart)实体类
 *
 * @author makejava
 * @since 2020-09-21 14:13:50
 */
public class Cart implements Serializable {

//    private static final long serialVersionUID = -94414405039900165L;
    /**
     * 购物车详情id
     */
    @Id
    private Integer id;
    /**
     * 用户id
     */
    private Integer sid;
    /**
     * 商品id
     */
    private Integer gid;
    /**
     * 商品数量
     */
    private Integer count;
    /**
     * 订单中某个商品的金额，不是订单总金额
     */
    private String tatolprice;
    public Cart(){}
    public Cart(Integer id,Integer sid, Integer gid, Integer count, String tatolprice) {
        this.id = id;
        this.sid = sid;
        this.gid = gid;
        this.count = count;
        this.tatolprice = tatolprice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getTatolprice() {
        return tatolprice;
    }

    public void setTatolprice(String tatolprice) {
        this.tatolprice = tatolprice;
    }

}